package com.cloud.alarm.demo.handler;

import com.cloud.alarm.dinger.core.DingerConfig;
import com.cloud.alarm.dinger.multi.algorithm.AlgorithmHandler;
import lombok.extern.slf4j.Slf4j;

import java.util.List;

/**
 * @description:
 * @author: zhou shuai
 * @date: 2023/5/16 19:03
 * @version: v1
 */
@Slf4j
public class CustomAlgorithmHandler implements AlgorithmHandler {

    @Override
    public DingerConfig handler(List<DingerConfig> dingerConfigs, DingerConfig defaultDingerConfig) {
        // 多机器人使用逻辑代码...
        return dingerConfigs.get(0);
    }

}
